#include "flUtils.h"

/*
	Window related functions
*/

int flGetWindowWidth()
{
	return glutGet(GLUT_WINDOW_WIDTH);
}
int flGetWindowHeight()
{
	return glutGet(GLUT_WINDOW_HEIGHT);
}

float flGetWindowXPosition()
{
	return glutGet(GLUT_WINDOW_X);
}
float flGetWindowYPosition()
{
	return glutGet(GLUT_WINDOW_Y);
}

void flSetWindowTitle(string title)
{
	glutSetWindowTitle((char *)title.c_str());
}

/*
	Destop related functions
/*/
float flGetScreenWidth()
{
	return glutGet(GLUT_SCREEN_WIDTH);
}
float flGetScreenHeight()
{
	return glutGet(GLUT_SCREEN_HEIGHT);
}

/*
	Show and hide cursor
*/
void flShowCursor()
{
	glutSetCursor(GLUT_CURSOR_LEFT_ARROW);
}
void flHideCursor()
{
	glutSetCursor(GLUT_CURSOR_NONE);
}